Optimal. Leaf size=281 \[ \frac {3 d^{5/2} \text {ArcTan}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}+\frac {d^{5/2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}-\frac {d^{5/2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}+\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 281, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 14, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.560, Rules used = {3646, 3734,
12, 3557, 335, 217, 1179, 642, 1176, 631, 210, 3715, 65, 211} \begin {gather*} \frac {3 d^{5/2} \text {ArcTan}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}+\frac {d^{5/2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}-\frac {d^{5/2} \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}+1\right )}{2 \sqrt {2} a^2 f}+\frac {d^{5/2} \log \left (\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 f}-\frac {d^{5/2} \log \left (\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2 \tan (e+f x)+a^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 65
Rule 210
Rule 211
Rule 217
Rule 335
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 3557
Rule 3646
Rule 3715
Rule 3734
Rubi steps
\begin {align*} \int \frac {(d \tan (e+f x))^{5/2}}{(a+a \tan (e+f x))^2} \, dx &=-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int \frac {\frac {a^2 d^3}{2}-a^2 d^3 \tan (e+f x)+\frac {3}{2} a^2 d^3 \tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{2 a^3}\\ &=-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int -\frac {2 a^3 d^3}{\sqrt {d \tan (e+f x)}} \, dx}{4 a^5}+\frac {\left (3 d^3\right ) \int \frac {1+\tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{4 a}\\ &=-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}-\frac {d^3 \int \frac {1}{\sqrt {d \tan (e+f x)}} \, dx}{2 a^2}+\frac {\left (3 d^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {d x} (a+a x)} \, dx,x,\tan (e+f x)\right )}{4 a f}\\ &=-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\left (3 d^2\right ) \text {Subst}\left (\int \frac {1}{a+\frac {a x^2}{d}} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a f}-\frac {d^4 \text {Subst}\left (\int \frac {1}{\sqrt {x} \left (d^2+x^2\right )} \, dx,x,d \tan (e+f x)\right )}{2 a^2 f}\\ &=\frac {3 d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}-\frac {d^4 \text {Subst}\left (\int \frac {1}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{a^2 f}\\ &=\frac {3 d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}-\frac {d^3 \text {Subst}\left (\int \frac {d-x^2}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a^2 f}-\frac {d^3 \text {Subst}\left (\int \frac {d+x^2}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a^2 f}\\ &=\frac {3 d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}+\frac {d^{5/2} \text {Subst}\left (\int \frac {\sqrt {2} \sqrt {d}+2 x}{-d-\sqrt {2} \sqrt {d} x-x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}+\frac {d^{5/2} \text {Subst}\left (\int \frac {\sqrt {2} \sqrt {d}-2 x}{-d+\sqrt {2} \sqrt {d} x-x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^3 \text {Subst}\left (\int \frac {1}{d-\sqrt {2} \sqrt {d} x+x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 a^2 f}-\frac {d^3 \text {Subst}\left (\int \frac {1}{d+\sqrt {2} \sqrt {d} x+x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 a^2 f}\\ &=\frac {3 d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}+\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}-\frac {d^{5/2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}+\frac {d^{5/2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}\\ &=\frac {3 d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 f}+\frac {d^{5/2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}-\frac {d^{5/2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 f}+\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^{5/2} \log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 f}-\frac {d^2 \sqrt {d \tan (e+f x)}}{2 f \left (a^2+a^2 \tan (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.55, size = 226, normalized size = 0.80 \begin {gather*} \frac {\csc (e+f x) (\cos (e+f x)+\sin (e+f x))^2 \left (-\frac {4 \cot (e+f x)}{\cos (e+f x)+\sin (e+f x)}+\frac {\left (2 \sqrt {2} \text {ArcTan}\left (1-\sqrt {2} \sqrt {\tan (e+f x)}\right )-2 \sqrt {2} \text {ArcTan}\left (1+\sqrt {2} \sqrt {\tan (e+f x)}\right )+12 \text {ArcTan}\left (\sqrt {\tan (e+f x)}\right )+\sqrt {2} \log \left (-1+\sqrt {2} \sqrt {\tan (e+f x)}-\tan (e+f x)\right )-\sqrt {2} \log \left (1+\sqrt {2} \sqrt {\tan (e+f x)}+\tan (e+f x)\right )\right ) \sec (e+f x)}{\tan ^{\frac {3}{2}}(e+f x)}\right ) (d \tan (e+f x))^{5/2}}{8 a^2 f (1+\tan (e+f x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 191, normalized size = 0.68
method | result | size |
derivativedivides | \(\frac {2 d^{3} \left (-\frac {\sqrt {d \tan \left (f x +e \right )}}{4 \left (d \tan \left (f x +e \right )+d \right )}+\frac {3 \arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{4 \sqrt {d}}-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{16 d}\right )}{f \,a^{2}}\) | \(191\) |
default | \(\frac {2 d^{3} \left (-\frac {\sqrt {d \tan \left (f x +e \right )}}{4 \left (d \tan \left (f x +e \right )+d \right )}+\frac {3 \arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{4 \sqrt {d}}-\frac {\left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{16 d}\right )}{f \,a^{2}}\) | \(191\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 226, normalized size = 0.80 \begin {gather*} -\frac {\frac {4 \, \sqrt {d \tan \left (f x + e\right )} d^{4}}{a^{2} d \tan \left (f x + e\right ) + a^{2} d} - \frac {12 \, d^{\frac {7}{2}} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a^{2}} + \frac {2 \, \sqrt {2} d^{\frac {7}{2}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right ) + 2 \, \sqrt {2} d^{\frac {7}{2}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right ) + \sqrt {2} d^{\frac {7}{2}} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right ) - \sqrt {2} d^{\frac {7}{2}} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{a^{2}}}{8 \, d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 879 vs.
\(2 (226) = 452\).
time = 1.50, size = 1840, normalized size = 6.55 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}{\tan ^{2}{\left (e + f x \right )} + 2 \tan {\left (e + f x \right )} + 1}\, dx}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.78, size = 254, normalized size = 0.90 \begin {gather*} -\frac {1}{8} \, d^{2} {\left (\frac {2 \, \sqrt {2} \sqrt {{\left | d \right |}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{a^{2} f} + \frac {2 \, \sqrt {2} \sqrt {{\left | d \right |}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{a^{2} f} + \frac {\sqrt {2} \sqrt {{\left | d \right |}} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{a^{2} f} - \frac {\sqrt {2} \sqrt {{\left | d \right |}} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{a^{2} f} - \frac {12 \, \sqrt {d} \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a^{2} f} + \frac {4 \, \sqrt {d \tan \left (f x + e\right )} d}{{\left (d \tan \left (f x + e\right ) + d\right )} a^{2} f}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.69, size = 376, normalized size = 1.34 \begin {gather*} \frac {\mathrm {atan}\left (\frac {4\,d^{20}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {d^{10}}{a^8\,f^4}\right )}^{1/4}}{\frac {36\,d^{23}}{a^2\,f}-4\,a^2\,d^{18}\,f\,\sqrt {-\frac {d^{10}}{a^8\,f^4}}}+\frac {36\,d^{15}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {d^{10}}{a^8\,f^4}\right )}^{3/4}}{\frac {36\,d^{23}}{a^6\,f^3}-\frac {4\,d^{18}\,\sqrt {-\frac {d^{10}}{a^8\,f^4}}}{a^2\,f}}\right )\,{\left (-\frac {d^{10}}{a^8\,f^4}\right )}^{1/4}}{2}+\mathrm {atan}\left (\frac {d^{20}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {d^{10}}{256\,a^8\,f^4}\right )}^{1/4}\,16{}\mathrm {i}}{\frac {36\,d^{23}}{a^2\,f}+64\,a^2\,d^{18}\,f\,\sqrt {-\frac {d^{10}}{256\,a^8\,f^4}}}-\frac {d^{15}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {d^{10}}{256\,a^8\,f^4}\right )}^{3/4}\,2304{}\mathrm {i}}{\frac {36\,d^{23}}{a^6\,f^3}+\frac {64\,d^{18}\,\sqrt {-\frac {d^{10}}{256\,a^8\,f^4}}}{a^2\,f}}\right )\,{\left (-\frac {d^{10}}{256\,a^8\,f^4}\right )}^{1/4}\,2{}\mathrm {i}-\frac {d^3\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{2\,\left (a^2\,d\,f+a^2\,d\,f\,\mathrm {tan}\left (e+f\,x\right )\right )}+\frac {\mathrm {atan}\left (\frac {\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,\sqrt {-d^5}\,1{}\mathrm {i}}{d^3}\right )\,\sqrt {-d^5}\,3{}\mathrm {i}}{2\,a^2\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________